#include "request-decorator.hh"

RequestDecorator::RequestDecorator (Request* request):
  request_ (boost::shared_ptr<Request> (request))
{
}

RequestDecorator::~RequestDecorator ()
{
}

void
RequestDecorator::operator() (RequestHandler* rh, const int* clientid)
{
  (*request_) (rh);
}

ClientIdDecorator::ClientIdDecorator (Request* request, const int* clientid):
  RequestDecorator(request),
  clientid_ (clientid)
{
}

ClientIdDecorator::~ClientIdDecorator ()
{
}

void
ClientIdDecorator::operator() (RequestHandler* rh, const int* clientid)
{
  (*request_) (rh, clientid_);
}
